package com.xjrsoft.module.customer.erp_model.erpPurchaseOrderInfo.service;

import com.xjrsoft.module.customer.erp_model.erpPurchaseOrderInfo.entity.ErpPurchaseorder;
import com.xjrsoft.module.customer.erp_model.erpPurchaseOrderInfo.entity.ErpPurchaseorderentry;
import com.xjrsoft.module.customer.erp_model.erpPurchaseOrderInfo.dto.ErpPurchaseorderListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *  服务类
 *
 * @author pp
 * @since 2021-10-13
 */
public interface IErpPurchaseorderService extends IService<ErpPurchaseorder> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<ErpPurchaseorder> getPageList(ErpPurchaseorderListDto pageListDto);

	List<ErpPurchaseorderentry> getErpPurchaseorderentryByParentId(String parentId);
	String addErpPurchaseorder(ErpPurchaseorder erpPurchaseorder, List<ErpPurchaseorderentry> erpPurchaseorderentryList);

	boolean updateErpPurchaseorder(String id, ErpPurchaseorder erpPurchaseorder, List<ErpPurchaseorderentry> erpPurchaseorderentryList);
}
